package com.atguigu.gmall.order.service;

import com.atguigu.gmall.order.dto.OrderSubmitDto;
import com.atguigu.gmall.order.entity.OrderInfo;
import com.atguigu.gmall.order.entity.WareStockMsg;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author xueyoupeng
* @description 针对表【order_info(订单表 订单表)】的数据库操作Service
* @createDate 2023-07-27 14:18:16
*/
public interface OrderInfoService extends IService<OrderInfo> {

    public abstract String submitOrder(String tradeNo, OrderSubmitDto orderSubmitDto);

    public void closeOrder(Long orderId, Long userId) ;

    public abstract void updateOrderStatusPayed(Map<String, String> params);

    public abstract void wareStockUpateStatus(String wareStockJSON);

    public abstract List<WareStockMsg> orderSplit(Long orderId, String wareSkuMap);

    public abstract Page<OrderInfo> findOrderByPage(Integer pageNo, Integer pageSize);
}
